package BookManagement.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

@Controller
public class TestController {
    @RequestMapping("/out")
    public ModelAndView Test(HttpSession session){
        session.invalidate();
        return new ModelAndView("/account/logout");
    }
}
